package cn.xydpeng.springframework.beans;

import cn.xydpeng.springframework.lang.Nullable;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2022/10/17
 * @description:
 */
public class BeanWrapperImpl implements BeanWrapper {

    @Nullable
    Object wrappedObject;

    public BeanWrapperImpl(Object object) {
        this.wrappedObject = object;
    }

    @Override
    public Object getWrappedInstance() {
        return this.wrappedObject;
    }

    @Override
    public Class<?> getWrappedClass() {
        return getWrappedInstance().getClass();
    }
}
